/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #000ae3;
    line-height: 1.6;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* 输入组样式 */
.input-group {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group label {
    font-weight: bold;
}

input[type="number"],
input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
}

/* 按钮样式 */
button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

button:hover {
    background: #2980b9;
}

button:active {
    transform: scale(0.98);
}

/* 错误信息样式 */
.error {
    color: #3d448a;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    background: #8e5458;
    text-align: center;
}

/* 计算结果样式 */
.results {
    margin-top: 30px;
}

.result-section {
    margin: 20px 0;
    padding: 20px;
    background: #e3e7ea;
    border-radius: 5px;
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease;
}

.result-section:hover {
    transform: translateY(-5px);
}

.math-display {
    padding: 15px;
    background: white;
    margin: 10px 0;
    overflow-x: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

/* 表格样式 */
table {
    border-collapse: collapse;
    margin: 10px 0;
    width: 100%;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

/* 特征向量组样式 */
.eigen-group .math-display {
    width: auto;
    min-width: 200px;
    height: auto;
    min-height: 50px;
    overflow: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    input[type="number"],
    input[type="text"] {
        width: 100%;
    }

    button {
        width: 100%;
    }
}